
file(GLOB_RECURSE SOCKET_PROXY_IMP_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
file(GLOB_RECURSE UTILITIES_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../utilities/*.cpp)
set(SOCKET_PROXY_SRC ${SOCKET_PROXY_IMP_SRC} ${UTILITIES_SRC})

add_library(${R_SOCKET_PROXY_TARGET} ${SOCKET_PROXY_SRC})

target_include_directories(${R_SOCKET_PROXY_TARGET} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
target_include_directories(${R_SOCKET_PROXY_TARGET} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_include_directories(${R_SOCKET_PROXY_TARGET} PRIVATE ${PROJECT_SOURCE_DIR}/implement)

install(
    TARGETS ${R_SOCKET_PROXY_TARGET}
    LIBRARY DESTINATION ${R_SOCKET_INSTALL_LIB_DIR}
)
